<template>
	<el-container>
		<el-aside width="15%">
			<div class="menu">
				<el-menu @select="changeSidebar" active-text-color="#ffd04b" background-color="#545c64"

					class="el-menu-vertical-demo" default-active="User" text-color="#fff"
					style="width: 200px;height: calc(100vh - 16px)">

					<el-menu-item index="User">
						<i class="el-icon-s-custom"></i>
						<span slot="title">个人信息</span>
					</el-menu-item>
					<el-menu-item index="Upload">
						<i class="el-icon-s-claim"></i>
						<span slot="title">意见反馈</span>
					</el-menu-item>
<!--  -->

					<el-menu-item index="Logistics">

						<i class="el-icon-s-shop"></i>
						<span slot="title" >我的派单</span>
						</el-menu-item>

					<el-menu-item index="Logistics1">
						<i class="el-icon-s-shop"></i>
						<span slot="title" >派单-买</span>
					</el-menu-item>

					<el-menu-item index="Logistics2">

						<i class="el-icon-s-shop"></i>
						<span slot="title" >派单-取</span>
					</el-menu-item>

					<el-menu-item index="Logistics3">

						<i class="el-icon-s-shop"></i>
						<span slot="title" >派单-送</span>
					</el-menu-item>

					<el-menu-item index="Logistics4">

						<i class="el-icon-s-shop"></i>
						<span slot="title" >派单-排</span>
					</el-menu-item>
					








					<!-- <el-submenu index="Logistics" style="margin-top: 75px;">
							<template slot="title">
								<i class="el-icon-location"></i>
								<span>导航一</span>
							</template>
							
							<el-menu-item-group>
								<template slot="title">分组一</template>
								<el-menu-item index="1-1">选项1</el-menu-item>
								<el-menu-item index="1-2">选项2</el-menu-item>
							</el-menu-item-group>
						</el-submenu> -->

					
					 

				</el-menu>
			</div>
		</el-aside>
		<el-container>
			<el-main>
				<!-- 仔细看，核心在这，这里是路由的出口-->
				<router-view></router-view>
			</el-main>
		</el-container>
	</el-container>
</template>




 
<script>
export default {
	data() {
		return {

		}
	},

	mounted() {
		this.sidebarItem = this.$route.name;
		window.οnbefοreunlοad = function () {
			console.log('刷新了')
			return ;

		}
	},
	methods: {
		changeSidebar(path) {
			this.$router.push(path);
		},
	}

}
</script>
 
 



